Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Contract Interaction Plugin #5474

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

DOBEN
Copy link

@DOBEN DOBEN commented Dec 7, 2024

A new plugin is added to the existing Remix plugins. The plugin is an adapted version of the verification plugin (clean-up of unused functionality still needed): https://github.com/ethereum/remix-project/tree/master/apps/contract-verification.

The plan is to add 3 features:

  • Feature 1: Fetching ABI from blockexplorers/sourcify (for a verified contract address) to get a UI to interact with a contract (similar to the UI in the Deploy & Run transactions tab).
    It could have four sections for proxyread/proxywrite/implementationread/implementationwrite category.
    https://github.com/DOBEN/ETHGlobal2024
    This feature does not add much value on its own (similar to fetching the source files from the block explorer https://github.com/ethereum/remix-project/blob/master/apps/contract-verification/src/app/Verifiers/EtherscanVerifier.ts#L217), but this step can be seen as a preparation for easily achieving Feature 2 once block explorers provide an API endpoint for fetching decode ABI.

  • Feature 2: Fetching/Decoding ABI (for unverified contract addresses) to get a UI to interact with a contract (similar to the UI in the Deploy & Run transactions tab) and lookup the decoded function selectors in a function selector database.

We hope for a public API to query decoded ABI from blockscout database (up to blockscout’s discretion so when and if this will be available).
blockscout/blockscout#11099

  • Feature 3: Decoding the return parameter (for unverified contract addresses)

Copy link

netlify bot commented Dec 7, 2024

👷 Deploy request for remixproject pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c42b7cb

@DOBEN DOBEN changed the title Contract Interaction Plugin WIP: Contract Interaction Plugin Dec 7, 2024
@DOBEN DOBEN marked this pull request as draft December 7, 2024 09:10
@DOBEN DOBEN force-pushed the contract-interaction-remix-plugin branch from 1f16d9c to 444a3ca Compare December 11, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant